<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        let name=localStorage.getItem("username");
        alert(name);
    </script>

</body>
</html>